package com.exam.service.exam;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.exam.common.vo.ExamGradeVO;
import com.exam.common.vo.ExamTiVO;
import com.exam.dao.exam.ExamDao;

@Service
@Transactional
public class ExamServiceImp implements ExamService	{

	@Autowired
	ExamDao examDao;
	
	@Override
	public void updateGrade(ExamTiVO ti, ExamGradeVO grade) {
		examDao.updateGrade(ti, grade);
	}

	@Override
	public ExamTiVO getTi(Integer examTiDifficulty, List<Integer> list) {
		return examDao.getTi(examTiDifficulty, list);
	}

}
